<template>
    <div>
        <el-form :inline="true" :model="ruleForm3" status-icon label-width="100px" class="demo-ruleForm">
            <el-form-item label="密码" prop="pass">
                <el-input type="password" v-model="ruleForm3.newPass" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="确认密码" prop="checkPass">
                <el-input type="password" v-model="ruleForm3.newCheckPass" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="年龄" prop="age">
                <el-input v-model.number="ruleForm3.newAge"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="submitForm('ruleForm3')">提交</el-button>
                <el-button @click="resetForm('ruleForm3')">重置</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {
        name: "bottomConfiguration",
        props: ['ruleForm2'],
        data() {
            return {
                ruleForm3: {
                    newPass: '',
                    newCheckPass: '',
                    newAge: ''
                }
            }
        },
        methods: {
            submitForm(btn) {

            },
            resetForm(btn) {

            }
        },
        watch: {
            'ruleForm2': function () {
                debugger;
                alert("Here");
                this.ruleForm3.newPass = this.formProps.pass;
                this.ruleForm3.newCheckPass = this.formProps.checkPass;
                this.ruleForm3.age = this.formProps.age;
            }
        }
    }
</script>

<style scoped>

</style>